<?php
/* @var $this AlunoController */
/* @var $model UsuarioAluno */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'usuario-aluno-form',
        'enableAjaxValidation' => true,
        'enableClientValidation' => true,
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

        <?php echo $form->errorSummary($model); ?>

        <div class="row">
            <?php echo $form->labelEx($model, 'usuario'); ?>
            <?php echo $form->textField($model, 'usuario', array('size' => 16, 'maxlength' => 16)); ?>
            <?php echo $form->error($model, 'usuario'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'senha'); ?>
            <?php echo $form->passwordField($model, 'senha', array('size' => 60, 'maxlength' => 255, 'value' => '')); ?>
            <?php echo $form->error($model, 'senha'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'email'); ?>
            <?php echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 200)); ?>
            <?php echo $form->error($model, 'email'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'nome'); ?>
            <?php echo $form->textField($model, 'nome', array('size' => 60, 'maxlength' => 255)); ?>
            <?php echo $form->error($model, 'nome'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'endereco'); ?>
            <?php echo $form->textField($model, 'endereco', array('size' => 60, 'maxlength' => 255)); ?>
            <?php echo $form->error($model, 'endereco'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'telefone'); ?>
            <?php echo $form->textField($model, 'telefone'); ?>
            <?php echo $form->error($model, 'telefone'); ?>
        </div>

        <div class="row buttons">
            <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
        </div>

    <?php $this->endWidget(); ?>

</div>